/***********************************************************************
    filename:   DaterMainMessageCenterWindow.h
    created:    10/4/2012
    author:     4Ys

    purpose:    Defines class for MainMessageCenterWindow objects in UI
*************************************************************************/
#ifndef _DaterMainMessageCenterWindow_h_
#define _DaterMainMessageCenterWindow_h_

#include "DaterRequestMessage.h"
#include "DaterMainWindow.h"
#include "DaterMessageWindow.h"

class MainMessageCenterWindow : public MainWindow
{
	/* !
	\brief
		The Events in Day version.
	*/
public:
		/* !
		\brief
			Construct the sample of class MainCalendarDayWindow.

		\param id_name
			- a string to represent the prefix of the window.
			
		\param parent
			- point to parent window.
		*/
	MainMessageCenterWindow(const CEGUI::String& id_name, CEGUI::Window* parent = 0);
	
		/* !
			Destructor of class MainCalendarDayWindow.
		*/
	~MainMessageCenterWindow();

		/* !
		\brief
			a virtual function generated from class MainCalendarWindow to show window.
		*/
	virtual void showWindow();
	
		/* !
		\brief
			a virtual function generated from class MainCalendarWindow to hide window.
		*/
	virtual void hideWindow();

		/* !
		\brief
			a function to refresh the window.
		*/
	void refreshMessageWindow();
	
		/* !
		\brief
			a function generated from class MainCalendarWindow to hide window.
		*/
	void addRequestMessage(RequestMessage* requestMessage);
	
		/* !
		\brief
			a function generated from class MainCalendarWindow to remove window.
		*/
	void removeRequestMeesage(MessageWindow* messageWindow);

	std::vector<MessageWindow*>& getRequestMessageWindows();

private:
	/// member to subscribe handler to each 'slot' in the layout.
    void subscribeEvents();

	bool handle_back(const CEGUI::EventArgs& args);

	std::vector<MessageWindow*> _requestMessages;
};

#endif